.class public Lcom/example/m6shop/MainActivity;
.super Landroid/app/Activity;
.source "MainActivity.java"


# static fields
.field public static localVersion:I

.field public static me:Lcom/example/m6shop/MainActivity;


# instance fields
.field final LEFT:I

.field final RIGHT:I

.field private body:Ljava/lang/String;

.field contentLayout:Landroid/widget/LinearLayout;

.field private dno:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private is_Fist:Z

.field private is_comenofy:Z

.field m:Lmyapp/MyApp;

.field private mUpdateManager:Lmyclass/updateManager;

.field private mcontext:Landroid/content/Context;

.field myLoginView:Landroid/view/View;

.field private savetongdao:Z

.field title_bar_menu_btn:Landroid/widget/ImageView;

.field title_bar_name:Landroid/widget/TextView;

.field private top:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 62
    const/4 v0, 0x0

    sput v0, Lcom/example/m6shop/MainActivity;->localVersion:I

    return-void
.end method

.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 41
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 45
    iput v2, p0, Lcom/example/m6shop/MainActivity;->RIGHT:I

    .line 46
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6shop/MainActivity;->LEFT:I

    .line 47
    iput-object v1, p0, Lcom/example/m6shop/MainActivity;->contentLayout:Landroid/widget/LinearLayout;

    .line 48
    iput-object v1, p0, Lcom/example/m6shop/MainActivity;->title_bar_menu_btn:Landroid/widget/ImageView;

    .line 49
    iput-object v1, p0, Lcom/example/m6shop/MainActivity;->title_bar_name:Landroid/widget/TextView;

    .line 50
    iput-object v1, p0, Lcom/example/m6shop/MainActivity;->h:Landroid/os/Handler;

    .line 52
    iput-object v1, p0, Lcom/example/m6shop/MainActivity;->m:Lmyapp/MyApp;

    .line 53
    const-string v0, "14645974837816"

    iput-object v0, p0, Lcom/example/m6shop/MainActivity;->dno:Ljava/lang/String;

    .line 63
    iput-boolean v2, p0, Lcom/example/m6shop/MainActivity;->savetongdao:Z

    .line 41
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/MainActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lcom/example/m6shop/MainActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6shop/MainActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/example/m6shop/MainActivity;->top:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/MainActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/example/m6shop/MainActivity;->body:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6shop/MainActivity;Z)V
    .locals 0

    .prologue
    .line 55
    iput-boolean p1, p0, Lcom/example/m6shop/MainActivity;->is_comenofy:Z

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6shop/MainActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 53
    iput-object p1, p0, Lcom/example/m6shop/MainActivity;->dno:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$5(Lcom/example/m6shop/MainActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6shop/MainActivity;->dno:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6shop/MainActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 61
    iput-object p1, p0, Lcom/example/m6shop/MainActivity;->top:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6shop/MainActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 61
    iput-object p1, p0, Lcom/example/m6shop/MainActivity;->body:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public getprint()Z
    .locals 1

    .prologue
    .line 388
    new-instance v0, Lcom/example/m6shop/MainActivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6shop/MainActivity$3;-><init>(Lcom/example/m6shop/MainActivity;)V

    .line 425
    invoke-virtual {v0}, Lcom/example/m6shop/MainActivity$3;->start()V

    .line 426
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 12
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v11, 0x0

    .line 66
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 67
    const v9, 0x7f03000f

    invoke-virtual {p0, v9}, Lcom/example/m6shop/MainActivity;->setContentView(I)V

    .line 68
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    check-cast v9, Lmyapp/MyApp;

    iput-object v9, p0, Lcom/example/m6shop/MainActivity;->m:Lmyapp/MyApp;

    .line 69
    iget-object v9, p0, Lcom/example/m6shop/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 70
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 71
    const-string v9, "userInfo"

    invoke-virtual {p0, v9, v11}, Lcom/example/m6shop/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    .line 74
    .local v7, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v7, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 76
    .local v0, "account":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v9, ""

    invoke-virtual {v0, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 78
    :cond_0
    new-instance v4, Landroid/content/Intent;

    const-class v9, Lcom/example/m6shop/LoginActivity;

    invoke-direct {v4, p0, v9}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 79
    .local v4, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v4}, Lcom/example/m6shop/MainActivity;->startActivity(Landroid/content/Intent;)V

    .line 84
    .end local v4    # "intent":Landroid/content/Intent;
    :cond_1
    sput-object p0, Lcom/example/m6shop/MainActivity;->me:Lcom/example/m6shop/MainActivity;

    .line 85
    iput-object p0, p0, Lcom/example/m6shop/MainActivity;->mcontext:Landroid/content/Context;

    .line 86
    const/4 v9, 0x1

    iput-boolean v9, p0, Lcom/example/m6shop/MainActivity;->is_Fist:Z

    .line 87
    iput-boolean v11, p0, Lcom/example/m6shop/MainActivity;->is_comenofy:Z

    .line 92
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    .line 97
    .local v2, "context":Landroid/content/Context;
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getPackageName()Ljava/lang/String;

    move-result-object v6

    .line 99
    .local v6, "pkgName":Ljava/lang/String;
    invoke-static {}, Lcom/igexin/sdk/PushManager;->getInstance()Lcom/igexin/sdk/PushManager;

    move-result-object v9

    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/igexin/sdk/PushManager;->initialize(Landroid/content/Context;)V

    .line 100
    if-eqz v0, :cond_2

    const-string v9, ""

    invoke-virtual {v0, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    .line 110
    :cond_2
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    invoke-static {v9}, Lmyclass/Utils;->getLogText(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v9

    sput-object v9, Lmyclass/Utils;->logStringCache:Ljava/lang/String;

    .line 112
    :try_start_0
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    .line 113
    invoke-virtual {v9}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v9

    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getPackageName()Ljava/lang/String;

    move-result-object v10

    const/4 v11, 0x0

    invoke-virtual {v9, v10, v11}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v5

    .line 114
    .local v5, "packageInfo":Landroid/content/pm/PackageInfo;
    iget v9, v5, Landroid/content/pm/PackageInfo;->versionCode:I

    sput v9, Lcom/example/m6shop/MainActivity;->localVersion:I
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 119
    .end local v5    # "packageInfo":Landroid/content/pm/PackageInfo;
    :goto_0
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "\u7248\u672c\u53f7"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget v11, Lcom/example/m6shop/MainActivity;->localVersion:I

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 120
    new-instance v9, Lmyclass/updateManager;

    sget v10, Lcom/example/m6shop/MainActivity;->localVersion:I

    invoke-direct {v9, p0, v10}, Lmyclass/updateManager;-><init>(Landroid/content/Context;I)V

    iput-object v9, p0, Lcom/example/m6shop/MainActivity;->mUpdateManager:Lmyclass/updateManager;

    .line 121
    iget-object v9, p0, Lcom/example/m6shop/MainActivity;->mUpdateManager:Lmyclass/updateManager;

    invoke-virtual {v9}, Lmyclass/updateManager;->checkUpdateInfo()V

    .line 122
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    .line 135
    .local v8, "resource":Landroid/content/res/Resources;
    new-instance v9, Lcom/example/m6shop/MainActivity$1;

    invoke-direct {v9, p0}, Lcom/example/m6shop/MainActivity$1;-><init>(Lcom/example/m6shop/MainActivity;)V

    iput-object v9, p0, Lcom/example/m6shop/MainActivity;->h:Landroid/os/Handler;

    .line 268
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->setbaidutosiet()Z

    .line 271
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "\u521d\u59cb\u5316\u6570\u636e"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 274
    return-void

    .line 115
    .end local v8    # "resource":Landroid/content/res/Resources;
    :catch_0
    move-exception v3

    .line 116
    .local v3, "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v3}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_0
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    .line 351
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "onDestroy"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 352
    invoke-virtual {p0}, Lcom/example/m6shop/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lmyclass/Utils;->logStringCache:Ljava/lang/String;

    invoke-static {v0, v1}, Lmyclass/Utils;->setLogText(Landroid/content/Context;Ljava/lang/String;)V

    .line 353
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 354
    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 0
    .param p1, "intent"    # Landroid/content/Intent;

    .prologue
    .line 382
    invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V

    .line 383
    invoke-virtual {p0, p1}, Lcom/example/m6shop/MainActivity;->setIntent(Landroid/content/Intent;)V

    .line 384
    return-void
.end method

.method protected onRestart()V
    .locals 0

    .prologue
    .line 278
    invoke-super {p0}, Landroid/app/Activity;->onRestart()V

    .line 280
    return-void
.end method

.method public onResume()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 363
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 365
    iget-boolean v1, p0, Lcom/example/m6shop/MainActivity;->is_Fist:Z

    if-eqz v1, :cond_0

    .line 366
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v2, "\u7b2c\u4e00\u6b21\u8fd0\u884c"

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 367
    iput-boolean v3, p0, Lcom/example/m6shop/MainActivity;->is_Fist:Z

    .line 379
    :goto_0
    return-void

    .line 370
    :cond_0
    iget-boolean v1, p0, Lcom/example/m6shop/MainActivity;->is_comenofy:Z

    if-eqz v1, :cond_1

    .line 371
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v2, "\u70b9\u901a\u77e5\u680f"

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 372
    iput-boolean v3, p0, Lcom/example/m6shop/MainActivity;->is_comenofy:Z

    goto :goto_0

    .line 374
    :cond_1
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v2, "Home\u952e\u8fd4\u56de"

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 375
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 376
    .local v0, "intent":Landroid/content/Intent;
    const-class v1, Lcom/example/m6shop/IndexActivity;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 377
    invoke-virtual {p0, v0}, Lcom/example/m6shop/MainActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 358
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 359
    return-void
.end method

.method public onStop()V
    .locals 0

    .prologue
    .line 346
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 347
    return-void
.end method

.method public setbaidutosiet()Z
    .locals 1

    .prologue
    .line 284
    new-instance v0, Lcom/example/m6shop/MainActivity$2;

    invoke-direct {v0, p0}, Lcom/example/m6shop/MainActivity$2;-><init>(Lcom/example/m6shop/MainActivity;)V

    .line 340
    invoke-virtual {v0}, Lcom/example/m6shop/MainActivity$2;->start()V

    .line 341
    const/4 v0, 0x0

    return v0
.end method
